home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / Q-R / ResGenie™ 1.0 / ResGenie™ / ResGenie™.rsrc / TEXT_209_soundlistrt.txt < prev    next >
Encoding:
Text File  |  1993-08-02  |  2.7 KB  |  71 lines

  1. put what into process
  2. put  selectedLine of window where into ReplaceLine
  3. put the text of window where into TheText
  4. repeat with x = 1 to the number of chars in process
  5. get char x of process
  6. if it is ";" then put "," into char x of process
  7. end repeat
  8. if word 1 of process is "Added:" then delete word 1 of process
  9. if there is a window "Resource List" then
  10. put the text of window "Resource List" into holdrezTEXT
  11. put the number of lines of char 1 to offset(process, holdrezTEXT)¬¨
  12. of holdrezTEXT into rezreplaceline
  13. end if
  14. if word 1 of process is "Deleted:" then
  15. beep
  16. do restext("TEXT", "Exit", colorauthoringpath)
  17. end if
  18. if item 2 of process is not "<unnamed>" then
  19. put item 2 of process into TheSound
  20. play TheSound
  21. do restext("TEXT", "Exit", colorauthoringpath)
  22. end if
  23. put item 1 of process into whatKind
  24. put item 2 of process into itsoldName
  25. put item 3 of process into itsID
  26. do showdialog 2, "505", , ,  "Untitled"
  27. if the result is empty then do restext("TEXT", "Exit", colorauthoringpath)
  28. put line 1 of the result into newname
  29. put FullResList("T=snd ", "O=N") into check
  30. get offset (newname, check)
  31. if it is "0" then
  32. do  RenameRes(RenamefilePath, itsID, whatkind, itsoldName, newname)
  33. put  newName into item 2 of process
  34. put process into line replaceline of theText
  35. set the text of window where to theTEXT
  36. put item 2 of process into TheSound
  37. play TheSound
  38. if there is a window "Resource List" then
  39. put process into line rezreplaceline of holdrezTEXT
  40. set the text of window "Resource List" to holdrezTEXT
  41. end if
  42. do restext("TEXT", "Exit", colorauthoringpath)
  43. end if
  44. if it is not "0" then
  45. do showdialog 1, "506","You must have a unique name for your sound in order for HyperCard to play it predictably. Please try another name.", "True"
  46. if the result is "2" then do restext("TEXT", "Exit", colorauthoringpath)
  47. if the result is "1" then
  48. repeat
  49. do showdialog 2, "505", , ,  "Untitled"
  50. if the result is empty then do restext("TEXT", "Exit", colorauthoringpath)
  51. put line 1 of the result into newname
  52. put FullResList("T=snd ", "O=N") into check
  53. get offset (newname, check)
  54. if it is  "0" then
  55. do  RenameRes(RenamefilePath, itsID, whatkind, itsoldName, newname)
  56. put  newName into item 2 of process
  57. put process into line replaceline of theText
  58. set the text of window where to theTEXT
  59. put newname into TheSound
  60. play TheSound
  61. if there is a window "Resource List" then
  62. put process into line rezreplaceline of holdrezTEXT
  63. set the text of window "Resource List" to holdrezTEXT
  64. end if
  65. do restext("TEXT", "Exit", colorauthoringpath)
  66. end if
  67. if it is  not "0" then do showdialog 1, "506","You must have a unique name for your sound in order for HyperCard to play it predictably. Please try another name." , "True"
  68. if the result is "2" then do restext("TEXT", "Exit", colorauthoringpath)
  69. end repeat
  70. end if
  71. end if